package ch.elca.training.dto;

import java.util.ArrayList;
import java.util.List;

import ch.elca.training.dom.Employee;
import ch.elca.training.dom.Group;

public class GroupDto {
	private Group group;
	private List<Employee> members;

	public Group getGroup() {
		return group;
	}

	public void setGroup(Group group) {
		this.group = group;
	}

	public List<Employee> getMembers() {
		if (members == null) {
			members = new ArrayList<Employee>();
		}
		return members;
	}

	public void setMembers(List<Employee> groupMember) {
		this.members = groupMember;
	}
	public String toString(){
		return "["+group.toString()+"]\n"+members.toString()+"\n";
	}
}
